package com.fs.service.impl;

import java.util.List;

import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.fs.mapper.WorkerCertificationAuditMapper;
import com.fs.domain.WorkerCertificationAudit;
import com.fs.service.IWorkerCertificationAuditService;

/**
 * 服务人员认证审核Service业务层处理
 *
 * @author ruoyi
 * @date 2024-10-18
 */
@Service
public class WorkerCertificationAuditServiceImpl implements IWorkerCertificationAuditService {
    @Autowired
    private WorkerCertificationAuditMapper workerCertificationAuditMapper;

    /**
     * 查询服务人员认证审核
     *
     * @param id 服务人员认证审核主键
     * @return 服务人员认证审核
     */
    @Override
    public WorkerCertificationAudit selectWorkerCertificationAuditById(Long id) {
        return workerCertificationAuditMapper.selectWorkerCertificationAuditById(id);
    }

    /**
     * 查询服务人员认证审核列表
     *
     * @param workerCertificationAudit 服务人员认证审核
     * @return 服务人员认证审核
     */
    @Override
    public List<WorkerCertificationAudit> selectWorkerCertificationAuditList(WorkerCertificationAudit workerCertificationAudit) {
        return workerCertificationAuditMapper.selectWorkerCertificationAuditList(workerCertificationAudit);
    }

    /**
     * 修改服务人员认证审核
     *
     * @param workerCertificationAudit 服务人员认证审核
     * @return 结果
     */
    @Override
    public int updateWorkerCertificationAudit(WorkerCertificationAudit workerCertificationAudit) {
        workerCertificationAudit.setUpdateTime(DateUtils.getNowDate());
        return workerCertificationAuditMapper.updateWorkerCertificationAudit(workerCertificationAudit);
    }
}
